const CASHES: [u32; 8] = [1, 2, 5, 10, 20, 30, 50, 100];

pub fn dp_rec_mc(amount: u32) -> u32 {
    let mut amount = amount;
    let mut ret = 0;
    for ix in (0..CASHES.len()).rev() {
        let i = CASHES[ix];
        ret += amount / i;
        amount %= i;
    }
    ret
}
